
export class GameEvent{
    // 游戏事件
    static GAME_EVENT_INIT: string = "GAME_EVENT_INIT";
    static GAME_EVENT_UPDATE: string = "GAME_EVENT_UPDATE";
    static GAME_EVENT_RENDER: string = "GAME_EVENT_RENDER";
    static GAME_EVENT_RESIZE: string = "GAME_EVENT_RESIZE";

    //游戏开始
    static GAME_EVENT_START: string = "GAME_EVENT_START";
    //游戏重新开始
    static GAME_EVENT_RESTART: string = "GAME_EVENT_RESTART";
    //游戏结束
    static GAME_EVENT_END: string = "GAME_EVENT_END";
    //游戏暂停
    static GAME_EVENT_PAUSE: string = "GAME_EVENT_PAUSE";

    //更新分数
    static GAME_EVENT_UPDATE_SCORE: string = "GAME_EVENT_UPDATE_SCORE";
}

export class GameLocalStorageKey{
    public static bestScore: string = "bestScore";
}


